only unref those handlers that have not yet been disconnected (finally
authorTim Janik <timj@gtk.org>
Mon, 12 Oct 1998 06:01:09 +0000 (06:01 +0000)
committerTim Janik <timj@src.gnome.org>
Mon, 12 Oct 1998 06:01:09 +0000 (06:01 +0000)
Mon Oct 12 07:51:34 1998  Tim Janik  <timj@gtk.org>

        * gtk/gtksignal.c (gtk_signal_handlers_destroy): only unref those
        handlers that have not yet been disconnected (finally managed to
        trigger the gtk_signal_handler_unref() paranoid warning).

Sat Oct 10 03:37:50 1998  Tim Janik  <timj@gtk.org>

        * gtk/gtkwidget.c (gtk_widget_get_arg): fixed default value for x, y,
        width and height which is -1 and not -2.

ChangeLog
ChangeLog.pre-2-0
ChangeLog.pre-2-10
ChangeLog.pre-2-2
ChangeLog.pre-2-4
ChangeLog.pre-2-6
ChangeLog.pre-2-8
gtk/gtksignal.c
gtk/gtkwidget.c

index b123a60b713751b71fc05c008b8c41640b087280..0ab1dcab29bf8a4f58c7b257880c61222e4c7ca2 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,14 @@
+Mon Oct 12 07:51:34 1998  Tim Janik  <timj@gtk.org>
+
+       * gtk/gtksignal.c (gtk_signal_handlers_destroy): only unref those
+       handlers that have not yet been disconnected (finally managed to
+       trigger the gtk_signal_handler_unref() paranoid warning).
+
+Sat Oct 10 03:37:50 1998  Tim Janik  <timj@gtk.org>
+
+       * gtk/gtkwidget.c (gtk_widget_get_arg): fixed default value for x, y,
+       width and height which is -1 and not -2.
+
 Sat Oct 10 00:50:53 PDT 1998 Manish Singh <yosh@gimp.org>
 
        * HACKING
index b123a60b713751b71fc05c008b8c41640b087280..0ab1dcab29bf8a4f58c7b257880c61222e4c7ca2 100644 (file)
@@ -1,3 +1,14 @@
+Mon Oct 12 07:51:34 1998  Tim Janik  <timj@gtk.org>
+
+       * gtk/gtksignal.c (gtk_signal_handlers_destroy): only unref those
+       handlers that have not yet been disconnected (finally managed to
+       trigger the gtk_signal_handler_unref() paranoid warning).
+
+Sat Oct 10 03:37:50 1998  Tim Janik  <timj@gtk.org>
+
+       * gtk/gtkwidget.c (gtk_widget_get_arg): fixed default value for x, y,
+       width and height which is -1 and not -2.
+
 Sat Oct 10 00:50:53 PDT 1998 Manish Singh <yosh@gimp.org>
 
        * HACKING
index b123a60b713751b71fc05c008b8c41640b087280..0ab1dcab29bf8a4f58c7b257880c61222e4c7ca2 100644 (file)
@@ -1,3 +1,14 @@
+Mon Oct 12 07:51:34 1998  Tim Janik  <timj@gtk.org>
+
+       * gtk/gtksignal.c (gtk_signal_handlers_destroy): only unref those
+       handlers that have not yet been disconnected (finally managed to
+       trigger the gtk_signal_handler_unref() paranoid warning).
+
+Sat Oct 10 03:37:50 1998  Tim Janik  <timj@gtk.org>
+
+       * gtk/gtkwidget.c (gtk_widget_get_arg): fixed default value for x, y,
+       width and height which is -1 and not -2.
+
 Sat Oct 10 00:50:53 PDT 1998 Manish Singh <yosh@gimp.org>
 
        * HACKING
index b123a60b713751b71fc05c008b8c41640b087280..0ab1dcab29bf8a4f58c7b257880c61222e4c7ca2 100644 (file)
@@ -1,3 +1,14 @@
+Mon Oct 12 07:51:34 1998  Tim Janik  <timj@gtk.org>
+
+       * gtk/gtksignal.c (gtk_signal_handlers_destroy): only unref those
+       handlers that have not yet been disconnected (finally managed to
+       trigger the gtk_signal_handler_unref() paranoid warning).
+
+Sat Oct 10 03:37:50 1998  Tim Janik  <timj@gtk.org>
+
+       * gtk/gtkwidget.c (gtk_widget_get_arg): fixed default value for x, y,
+       width and height which is -1 and not -2.
+
 Sat Oct 10 00:50:53 PDT 1998 Manish Singh <yosh@gimp.org>
 
        * HACKING
index b123a60b713751b71fc05c008b8c41640b087280..0ab1dcab29bf8a4f58c7b257880c61222e4c7ca2 100644 (file)
@@ -1,3 +1,14 @@
+Mon Oct 12 07:51:34 1998  Tim Janik  <timj@gtk.org>
+
+       * gtk/gtksignal.c (gtk_signal_handlers_destroy): only unref those
+       handlers that have not yet been disconnected (finally managed to
+       trigger the gtk_signal_handler_unref() paranoid warning).
+
+Sat Oct 10 03:37:50 1998  Tim Janik  <timj@gtk.org>
+
+       * gtk/gtkwidget.c (gtk_widget_get_arg): fixed default value for x, y,
+       width and height which is -1 and not -2.
+
 Sat Oct 10 00:50:53 PDT 1998 Manish Singh <yosh@gimp.org>
 
        * HACKING
index b123a60b713751b71fc05c008b8c41640b087280..0ab1dcab29bf8a4f58c7b257880c61222e4c7ca2 100644 (file)
@@ -1,3 +1,14 @@
+Mon Oct 12 07:51:34 1998  Tim Janik  <timj@gtk.org>
+
+       * gtk/gtksignal.c (gtk_signal_handlers_destroy): only unref those
+       handlers that have not yet been disconnected (finally managed to
+       trigger the gtk_signal_handler_unref() paranoid warning).
+
+Sat Oct 10 03:37:50 1998  Tim Janik  <timj@gtk.org>
+
+       * gtk/gtkwidget.c (gtk_widget_get_arg): fixed default value for x, y,
+       width and height which is -1 and not -2.
+
 Sat Oct 10 00:50:53 PDT 1998 Manish Singh <yosh@gimp.org>
 
        * HACKING
index b123a60b713751b71fc05c008b8c41640b087280..0ab1dcab29bf8a4f58c7b257880c61222e4c7ca2 100644 (file)
@@ -1,3 +1,14 @@
+Mon Oct 12 07:51:34 1998  Tim Janik  <timj@gtk.org>
+
+       * gtk/gtksignal.c (gtk_signal_handlers_destroy): only unref those
+       handlers that have not yet been disconnected (finally managed to
+       trigger the gtk_signal_handler_unref() paranoid warning).
+
+Sat Oct 10 03:37:50 1998  Tim Janik  <timj@gtk.org>
+
+       * gtk/gtkwidget.c (gtk_widget_get_arg): fixed default value for x, y,
+       width and height which is -1 and not -2.
+
 Sat Oct 10 00:50:53 PDT 1998 Manish Singh <yosh@gimp.org>
 
        * HACKING
index f87f337018d3053ead6b2872b04979c4e6449028..a35840f656837443e1fce05869c1d8d6e3aa350a 100644 (file)
@@ -1151,11 +1151,13 @@ gtk_signal_handlers_destroy (GtkObject *object)
          GtkHandler *next;
          
          next = handler->next;
-         gtk_signal_handler_unref (handler, object);
+         if (handler->id > 0)
+           gtk_signal_handler_unref (handler, object);
          handler = next;
        }
       handler = gtk_object_get_data_by_id (object, handler_quark);
-      gtk_signal_handler_unref (handler, object);
+      if (handler->id > 0)
+       gtk_signal_handler_unref (handler, object);
     }
 }
 
index 40055f2497554bd06a37bd611efbd75b34ca56aa..6871d48a4f064705b92242e7ebfd44d607915cea 100644 (file)
@@ -839,28 +839,28 @@ gtk_widget_get_arg (GtkObject   *object,
     case ARG_X:
       aux_info = gtk_object_get_data_by_id (GTK_OBJECT (widget), aux_info_key_id);
       if (!aux_info)
-       GTK_VALUE_INT (*arg) = -2;
+       GTK_VALUE_INT (*arg) = -1;
       else
        GTK_VALUE_INT (*arg) = aux_info->x;
       break;
     case ARG_Y:
       aux_info = gtk_object_get_data_by_id (GTK_OBJECT (widget), aux_info_key_id);
       if (!aux_info)
-       GTK_VALUE_INT (*arg) = -2;
+       GTK_VALUE_INT (*arg) = -1;
       else
        GTK_VALUE_INT (*arg) = aux_info->y;
       break;
     case ARG_WIDTH:
       aux_info = gtk_object_get_data_by_id (GTK_OBJECT (widget), aux_info_key_id);
       if (!aux_info)
-       GTK_VALUE_INT (*arg) = -2;
+       GTK_VALUE_INT (*arg) = -1;
       else
        GTK_VALUE_INT (*arg) = aux_info->width;
       break;
     case ARG_HEIGHT:
       aux_info = gtk_object_get_data_by_id (GTK_OBJECT (widget), aux_info_key_id);
       if (!aux_info)
-       GTK_VALUE_INT (*arg) = -2;
+       GTK_VALUE_INT (*arg) = -1;
       else
        GTK_VALUE_INT (*arg) = aux_info->height;
       break;